import axios from '../axios'

const students = {

    getstudents(params) {

        return axios({
            url: "/students/getStudents",
            method: "GET",
            params: {
                
                
            }
        })
    },

    //删除学生
    delstudent(data) {
        return axios({
            url: "/students/deleteStudents",
            method: "delete",
            data
        });

    },

    //新增
    addstudent(student) {
        return axios({
            url: "/students/addStudents",
            method: "post",
            data: student,
        });

    },


    //修改
    //获取
    getstudentbyId(params){
        return axios({
            url: "/students/getStudentsById",
            method: "GET",
            params
        });
    },
    //修改
    updateStudents(student) {

           return axios({
                url: "/students/updateStudents",
                method: "PUT",
               data: student,
            });




}
}
export default students